﻿using System.Diagnostics;

namespace DimensionsHelper.LanguageService.Syntax;

public class SourceDouble : PreExpression
{
    internal SourceDouble(SourceNode? parent) : base(parent, SyntaxKinds.Double)
    {
    }
}

public static partial class NodeFactory
{
    public static SourceDouble CreateSourceDouble(SourceNode source)
    {
        Debug.Assert(source.IsNode(SyntaxKinds.Double));
        SourceDouble db = new(null);
        db.UpdateFrom(source);
        db.UpdateValue(source.TokenNumberValue);
        db.SetFlags(source.GetFlags());
        return db;
    }
}